abstract class aa{
    public abstract void A();
    public void B(){
        System.out.println("BBB");
    }

    public static void main(String[] args) {
        aa d = new aa() {
            @Override
            public void A() {
                System.out.println(111);
            }
        };
        d.A();
    }
}
public class test1 extends aa{
    @Override
    public void A(){
        System.out.println(111);
    }

    public static void main(String[] args) {
        test1 test1 = new test1();
        test1.B();
    }
}
